package Exer03_分支;

import java.util.Scanner;
public class _1_3_4_根据成绩判定等级1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入等级");
        String Level = scanner.nextLine();
        switch (Level){
            case "A":
                System.out.println("优秀");
                break;
            case "B":
                System.out.println("良好");
                break;
            case "C":
                System.out.println("及格");
                break;
            case "D":
                System.out.println("不及格");
                break;
            default:
                System.out.println("未知等级");
        }
        scanner.close();
    }
}
